// 经销商档案管理路由
const commonMeta = {
  showBack: true,
  keepAlive: true
}
export default [
  {
    path: '/dealerCustomer',
    name: 'DealerInfoCustomer',
    component: () => import('@/views/dealerMarketingInfo/customer/index.vue'),
    meta: {
      title: '商家档案查询',
      ...commonMeta
    }
  },
  {
    path: '/dealerNewArchive',
    name: 'DealerInfoNewArchive',
    component: () => import('@/views/dealerMarketingInfo/newArchive/index.vue'),
    meta: {
      title: '经销商档案新建管理',
      ...commonMeta
    }
  },
  {
    path: '/dealerNewShop',
    name: 'DealerInfoNewShop',
    component: () => import('@/views/dealerMarketingInfo/newShop/index.vue'),
    meta: {
      title: '经销商新增门店管理',
      ...commonMeta
    }
  },
  {
    path: '/dealerShopChange',
    name: 'DealerInfoShopChange',
    component: () => import('@/views/dealerMarketingInfo/shopChange/index.vue'),
    meta: {
      title: '经销商业务变更',
      ...commonMeta
    }
  },
  {
    path: '/dealerShutUpShop',
    name: 'DealerInfoShutUpShop',
    component: () => import('@/views/dealerMarketingInfo/shutUpShop/index.vue'),
    meta: {
      title: '经销商分店关店管理',
      ...commonMeta
    }
  },
  {
    path: '/dealerFreezeAndthaw',
    name: 'DealerInfoFreezeAndthaw',
    component: () => import('@/views/dealerMarketingInfo/freezeAndthaw/index.vue'),
    meta: {
      title: '经销商冻结/解冻管理',
      ...commonMeta
    }
  },
  {
    path: '/dealerTermination',
    name: 'DealerInfoTermination',
    component: () => import('@/views/dealerMarketingInfo/termination/index.vue'),
    meta: {
      title: '经销商合作终止管理',
      ...commonMeta
    }
  },
  {
    path: '/dealerArchiveChange',
    name: 'DealerInfoArchiveChange',
    component: () => import('@/views/dealerMarketingInfo/archiveChange/index.vue'),
    meta: {
      title: '经销商档案变更管理',
      ...commonMeta
    }
  },
  {
    path: '/dealerChoice',
    name: 'DealerChoice',
    component: () => import('@/views/dealerMarketingInfo/dealerChoice/index.vue'),
    meta: {
      title: '选择经销商',
      showBack: true
    }
  },
  {
    path: '/dealer/detail',
    name: 'DealerDetail',
    component: () => import('@/views/dealerMarketingInfo/dealerChoice/Detail.vue'),
    meta: {
      title: '经销商信息',
      showBack: true
    }
  }
]
